package cn.wolfcode.luowowo2.website.web.controller;

import cn.wolfcode.luowowo2.member.domain.UserInfo;
import cn.wolfcode.luowowo2.member.service.IUserInfoService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Albert on 2019/7/5.
 */
@Controller
@RequestMapping("/users")
public class UserController {
    @Reference
    private IUserInfoService userInfoService;

    @GetMapping
    @ResponseBody
    public UserInfo get(Long id){
        return userInfoService.get(id);
    }
}
